package com.cby.jetpack.sample.navigation

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.cby.jetpack.sample.databinding.ActivityNavigationMainBinding
import com.cby.jetpack.sample.ext.binding
import com.cby.jetpack.sample.ext.start

/**
 * @description: NavigationMainActivity
 *
 * @author ChenBaoyang
 * @date 2021/8/14 10:24
 */
class NavigationMainActivity : AppCompatActivity() {

    private val binding: ActivityNavigationMainBinding by binding()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        binding.btnNavigationSample.setOnClickListener {
            start(NavigationSampleActivity::class.java)
        }

        binding.btnNavigationAdvance.setOnClickListener {
            start(NavigationAdvanceActivity::class.java)
        }
    }
}